package com.zx.tradeclient.ctrl.index5;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.zx.base.ctrl.BaseActivity;
import com.zx.base.ctrl.Constant;
import com.zx.base.widget.QuitDialog;
import com.zx.tradeclient.R;


public class Index5Activity extends BaseActivity {
	/** Called when the activity is first created. */

	

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);
		Button jump=(Button)findViewById(R.id.login_button_main);
		jump.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// 曹
				Intent intent=new Intent(Index5Activity.this,UserCenterActivity.class);
				startActivity(intent);
			}
		});
	}
	

	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			if(Constant.debug)Log.d("TMG", "ManageActivity KEYCODE_BACK");
			QuitDialog dialog = new QuitDialog(Index5Activity.this);
			dialog.exitConfirm();
			return true;
		}
		return super.onKeyDown(keyCode, event);
	}

}